package main

import (
	"encoding/json"
	"fmt"
)

func main() {
	m := make(map[string]interface{})

	m["company"] = "ky"
	m["sub"] = []string{"go", "c++"}
	m["is_ok"] = true
	m["price"] = 55.4

	res, err := json.Marshal(m)

	if err != nil {
		fmt.Println("err = ", err)
		return
	}
	fmt.Println("res = ", string(res))
}
